package xnet.core
{
	import flash.utils.ByteArray;

	public class ObjectUtils
	{
		public function ObjectUtils()
		{
		}
		
		/**对象的深度拷贝**/
		public static function copy(value:Object):Object
		{
			var buffer:ByteArray = new ByteArray();
			buffer.writeObject(value);
			buffer.position = 0;
			var result:Object = buffer.readObject();
			return result;
		}
	}
}